package com.ruoyi.asms.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 资产设备所有方和资产维护部门信息对象 asms_own_maintenance_dept
 * 
 * @author yfkj
 * @date 2021-10-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AsmsOwnMaintenanceDept extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 资产设备所有方和资产维护部门信息主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long assetOwnMaintenanceDeptId;
    /** 资产设备所有方 */
    @Excel(name = "资产设备所有方")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产设备所有方",required = true)
    private Long ownDeptId;
    /** 资产设备维护方 */
    @Excel(name = "资产设备维护方")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产设备维护方",required = true)
    private Long maintenanceDeptId;
    public static final String ASSET_OWN_MAINTENANCE_DEPT_ID="asset_own_maintenance_dept_id";
    public static final String OWN_DEPT_ID="own_dept_id";
    public static final String MAINTENANCE_DEPT_ID="maintenance_dept_id";
    public static final String CREATE_BY="create_by";
    public static final String CREATE_TIME="create_time";
    public static final String UPDATE_BY="update_by";
    public static final String UPDATE_TIME="update_time";
    public static final String REMARK="remark";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assetOwnMaintenanceDeptId", getAssetOwnMaintenanceDeptId())
            .append("ownDeptId", getOwnDeptId())
            .append("maintenanceDeptId", getMaintenanceDeptId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }

}
